<?php
require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'jfJQMAmobeeAdsProxy.class.php';
require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'jfJQMAmobeeAdsException.class.php';

header('Content-type: application/javascript');
header('HTTP/1.0 200 OK');

$proxy = new jfJQMAmobeeAdsProxy();
try {
	echo $proxy->execute();
}
catch (jfJQMAmobeeAdsException $e) {
	header('HTTP/1.0 '.$e->getCode());
	echo $e->getMessage();
}